package com.twu.biblioteca.model;

/**
 * Created by davecroman on 12/09/2014.
 */
public abstract class LibraryService {

    /**
     * The user of this service
     */
    protected UserAccount user;
    protected Library library;

    public LibraryService(Library library){
        this.library = library;
    }

    /**
     * This should perform the corresponding action to
     * the library, e.g., borrowing, returning, listing
     * books, etc.
     */
    public abstract ServiceResult performService();


    /**
     * Name of the service displayed on the UI menu.
     *
     * @return
     */
    public abstract String getName();

    public void setUser(UserAccount user){
        this.user = user;
    }
}
